package com.aliptori.fontinstaller.Logic.POKO;

import java.util.List;

/**
 * Created by yeganaaa on 3/30/18.
 */

/*

{
  "localId": "ecd8bc4f-06fd-4244-8948-024fa38afd82",
  "onlineId": "22d3d0b8-defd-4c26-b3c6-0616f99359d9",
  "assemblyId": "040fdf00-e63a-4536-95b6-b37a72ea97c8",
  "productId": "040fdf00-e63a-4536-95b6-b37a72ea97c8",
  "hash": "b30a2a81b889ba19186284a3027ddbe2714346cd",
  "platform": 6,
  "size": 3674048,
  "updatedTime": 1406786563035,
  "version": "1.0",
  "authors": {
    "zh_CN": "Michae",
    "fallback": "Michae"
  },
  "designers": {
    "zh_CN": "Michae",
    "fallback": "Michae"
  },
  "titles": {
    "zh_CN": "华康黑体W5拼音体",
    "fallback": "华康黑体W5拼音体"
  },
  "descriptions": {
    "zh_CN": "拼音字体一般多用于低幼读物加注拼音。通常拼音字体分为两种，一种是拼音汉字库，另外一种是拼音字库。",
    "fallback": "拼音字体一般多用于低幼读物加注拼音。通常拼音字体分为两种，一种是拼音汉字库，另外一种是拼音字库。"
  },
  "builtInThumbnails": {
    "fallback": [
      "preview_fonts_small_0.png",
      "preview_fonts_0.png",
      "preview_fonts_1.png",
      "preview_fonts_2.png",
      "preview_fonts_3.png"
    ]
  },
  "builtInPreviews": {
    "fallback": [
      "preview_fonts_0.png",
      "preview_fonts_1.png",
      "preview_fonts_2.png",
      "preview_fonts_3.png"
    ]
  },
  "thumbnails": [
    {
      "localPath": "061dd5a2b05b3dc3ad7b7471afab1a0dc47422c58",
      "onlinePath": "http://t4.market.xiaomi.com/thumbnail/webp/w1006/ThemeMarket/061dd5a2b05b3dc3ad7b7471afab1a0dc47422c58"
    }
  ],
  "previews": [
    {
      "localPath": "0f6a435f804df4a8b247404051eeef34297574346",
      "onlinePath": "http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/0f6a435f804df4a8b247404051eeef34297574346"
    },
    {
      "localPath": "0a1dd852b75034c3d27b7d71ac5b150ccabafad26",
      "onlinePath": "http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/0a1dd852b75034c3d27b7d71ac5b150ccabafad26"
    },
    {
      "localPath": "0b1dd852b75034c3d27b7a71ac4b150ccabacad26",
      "onlinePath": "http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/0b1dd852b75034c3d27b7a71ac4b150ccabacad26"
    },
    {
      "localPath": "031dd852b75034c3c27b7d71acfb1500caba5ad26",
      "onlinePath": "http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/031dd852b75034c3c27b7d71acfb1500caba5ad26"
    }
  ],
  "parentResources": [
    {
      "localId": "b0167380-f2dc-431a-842b-5fddd70da661",
      "resourceCode": "theme",
      "extraMeta": {},
      "metaPath": null,
      "contentPath": null
    }
  ],
  "subResources": [],
  "extraMeta": {},
  "metaPath": null,
  "contentPath": null,
  "rightsPath": null
}

*/
public class FontMeta {

    /**
     * localId : ecd8bc4f-06fd-4244-8948-024fa38afd82
     * onlineId : 22d3d0b8-defd-4c26-b3c6-0616f99359d9
     * assemblyId : 040fdf00-e63a-4536-95b6-b37a72ea97c8
     * productId : 040fdf00-e63a-4536-95b6-b37a72ea97c8
     * hash : b30a2a81b889ba19186284a3027ddbe2714346cd
     * platform : 6
     * size : 3674048
     * updatedTime : 1406786563035
     * version : 1.0
     * authors : {"zh_CN":"Michae","fallback":"Michae"}
     * designers : {"zh_CN":"Michae","fallback":"Michae"}
     * titles : {"zh_CN":"华康黑体W5拼音体","fallback":"华康黑体W5拼音体"}
     * descriptions : {"zh_CN":"拼音字体一般多用于低幼读物加注拼音。通常拼音字体分为两种，一种是拼音汉字库，另外一种是拼音字库。","fallback":"拼音字体一般多用于低幼读物加注拼音。通常拼音字体分为两种，一种是拼音汉字库，另外一种是拼音字库。"}
     * builtInThumbnails : {"fallback":["preview_fonts_small_0.png","preview_fonts_0.png","preview_fonts_1.png","preview_fonts_2.png","preview_fonts_3.png"]}
     * builtInPreviews : {"fallback":["preview_fonts_0.png","preview_fonts_1.png","preview_fonts_2.png","preview_fonts_3.png"]}
     * thumbnails : [{"localPath":"061dd5a2b05b3dc3ad7b7471afab1a0dc47422c58","onlinePath":"http://t4.market.xiaomi.com/thumbnail/webp/w1006/ThemeMarket/061dd5a2b05b3dc3ad7b7471afab1a0dc47422c58"}]
     * previews : [{"localPath":"0f6a435f804df4a8b247404051eeef34297574346","onlinePath":"http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/0f6a435f804df4a8b247404051eeef34297574346"},{"localPath":"0a1dd852b75034c3d27b7d71ac5b150ccabafad26","onlinePath":"http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/0a1dd852b75034c3d27b7d71ac5b150ccabafad26"},{"localPath":"0b1dd852b75034c3d27b7a71ac4b150ccabacad26","onlinePath":"http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/0b1dd852b75034c3d27b7a71ac4b150ccabacad26"},{"localPath":"031dd852b75034c3c27b7d71acfb1500caba5ad26","onlinePath":"http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/031dd852b75034c3c27b7d71acfb1500caba5ad26"}]
     * parentResources : [{"localId":"b0167380-f2dc-431a-842b-5fddd70da661","resourceCode":"theme","extraMeta":{},"metaPath":null,"contentPath":null}]
     * subResources : []
     * extraMeta : {}
     * metaPath : null
     * contentPath : null
     * rightsPath : null
     */

    private String localId;
    private String onlineId;
    private String assemblyId;
    private String productId;
    private String hash;
    private int platform;
    private int size;
    private long updatedTime;
    private String version;
    private AuthorsBean authors;
    private DesignersBean designers;

    public String getLocalId() {
        return localId;
    }

    public void setLocalId(String localId) {
        this.localId = localId;
    }

    public String getOnlineId() {
        return onlineId;
    }

    public void setOnlineId(String onlineId) {
        this.onlineId = onlineId;
    }

    public String getAssemblyId() {
        return assemblyId;
    }

    public void setAssemblyId(String assemblyId) {
        this.assemblyId = assemblyId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public int getPlatform() {
        return platform;
    }

    public void setPlatform(int platform) {
        this.platform = platform;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(long updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public AuthorsBean getAuthors() {
        return authors;
    }

    public void setAuthors(AuthorsBean authors) {
        this.authors = authors;
    }

    public DesignersBean getDesigners() {
        return designers;
    }

    public void setDesigners(DesignersBean designers) {
        this.designers = designers;
    }

    public TitlesBean getTitles() {
        return titles;
    }

    public void setTitles(TitlesBean titles) {
        this.titles = titles;
    }

    public DescriptionsBean getDescriptions() {
        return descriptions;
    }

    public void setDescriptions(DescriptionsBean descriptions) {
        this.descriptions = descriptions;
    }

    public BuiltInThumbnailsBean getBuiltInThumbnails() {
        return builtInThumbnails;
    }

    public void setBuiltInThumbnails(BuiltInThumbnailsBean builtInThumbnails) {
        this.builtInThumbnails = builtInThumbnails;
    }

    public BuiltInPreviewsBean getBuiltInPreviews() {
        return builtInPreviews;
    }

    public void setBuiltInPreviews(BuiltInPreviewsBean builtInPreviews) {
        this.builtInPreviews = builtInPreviews;
    }

    public ExtraMetaBean getExtraMeta() {
        return extraMeta;
    }

    public void setExtraMeta(ExtraMetaBean extraMeta) {
        this.extraMeta = extraMeta;
    }

    public Object getMetaPath() {
        return metaPath;
    }

    public void setMetaPath(Object metaPath) {
        this.metaPath = metaPath;
    }

    public Object getContentPath() {
        return contentPath;
    }

    public void setContentPath(Object contentPath) {
        this.contentPath = contentPath;
    }

    public Object getRightsPath() {
        return rightsPath;
    }

    public void setRightsPath(Object rightsPath) {
        this.rightsPath = rightsPath;
    }

    public List<ThumbnailsBean> getThumbnails() {
        return thumbnails;
    }

    public void setThumbnails(List<ThumbnailsBean> thumbnails) {
        this.thumbnails = thumbnails;
    }

    public List<PreviewsBean> getPreviews() {
        return previews;
    }

    public void setPreviews(List<PreviewsBean> previews) {
        this.previews = previews;
    }

    public List<FontMeta> getParentResources() {
        return parentResources;
    }

    public void setParentResources(List<FontMeta> parentResources) {
        this.parentResources = parentResources;
    }

    public List<?> getSubResources() {
        return subResources;
    }

    public void setSubResources(List<?> subResources) {
        this.subResources = subResources;
    }

    private TitlesBean titles;
    private DescriptionsBean descriptions;
    private BuiltInThumbnailsBean builtInThumbnails;
    private BuiltInPreviewsBean builtInPreviews;
    private ExtraMetaBean extraMeta;
    private Object metaPath;
    private Object contentPath;
    private Object rightsPath;
    private List<ThumbnailsBean> thumbnails;
    private List<PreviewsBean> previews;
    private List<FontMeta> parentResources;
    private List<?> subResources;

    public static class AuthorsBean {
        /**
         * zh_CN : Michae
         * fallback : Michae
         */

        private String zh_CN;
        private String fallback;

        public String getZh_CN() {
            return zh_CN;
        }

        public void setZh_CN(String zh_CN) {
            this.zh_CN = zh_CN;
        }

        public String getFallback() {
            return fallback;
        }

        public void setFallback(String fallback) {
            this.fallback = fallback;
        }
    }

    public static class DesignersBean {
        /**
         * zh_CN : Michae
         * fallback : Michae
         */

        private String zh_CN;
        private String fallback;

        public String getZh_CN() {
            return zh_CN;
        }

        public void setZh_CN(String zh_CN) {
            this.zh_CN = zh_CN;
        }

        public String getFallback() {
            return fallback;
        }

        public void setFallback(String fallback) {
            this.fallback = fallback;
        }
    }

    public static class TitlesBean {
        /**
         * zh_CN : 华康黑体W5拼音体
         * fallback : 华康黑体W5拼音体
         */

        private String zh_CN;
        private String fallback;

        public String getZh_CN() {
            return zh_CN;
        }

        public void setZh_CN(String zh_CN) {
            this.zh_CN = zh_CN;
        }

        public String getFallback() {
            return fallback;
        }

        public void setFallback(String fallback) {
            this.fallback = fallback;
        }
    }

    public static class DescriptionsBean {
        /**
         * zh_CN : 拼音字体一般多用于低幼读物加注拼音。通常拼音字体分为两种，一种是拼音汉字库，另外一种是拼音字库。
         * fallback : 拼音字体一般多用于低幼读物加注拼音。通常拼音字体分为两种，一种是拼音汉字库，另外一种是拼音字库。
         */

        private String zh_CN;
        private String fallback;

        public String getZh_CN() {
            return zh_CN;
        }

        public void setZh_CN(String zh_CN) {
            this.zh_CN = zh_CN;
        }

        public String getFallback() {
            return fallback;
        }

        public void setFallback(String fallback) {
            this.fallback = fallback;
        }
    }

    public static class BuiltInThumbnailsBean {
        private List<String> fallback;

        public List<String> getFallback() {
            return fallback;
        }

        public void setFallback(List<String> fallback) {
            this.fallback = fallback;
        }
    }

    public static class BuiltInPreviewsBean {
        private List<String> fallback;

        public List<String> getFallback() {
            return fallback;
        }

        public void setFallback(List<String> fallback) {
            this.fallback = fallback;
        }
    }

    public static class ExtraMetaBean {
    }

    public static class ThumbnailsBean {
        /**
         * localPath : 061dd5a2b05b3dc3ad7b7471afab1a0dc47422c58
         * onlinePath : http://t4.market.xiaomi.com/thumbnail/webp/w1006/ThemeMarket/061dd5a2b05b3dc3ad7b7471afab1a0dc47422c58
         */

        private String localPath;
        private String onlinePath;

        public String getLocalPath() {
            return localPath;
        }

        public void setLocalPath(String localPath) {
            this.localPath = localPath;
        }

        public String getOnlinePath() {
            return onlinePath;
        }

        public void setOnlinePath(String onlinePath) {
            this.onlinePath = onlinePath;
        }
    }

    public static class PreviewsBean {
        /**
         * localPath : 0f6a435f804df4a8b247404051eeef34297574346
         * onlinePath : http://t4.market.xiaomi.com/thumbnail/webp/w1080q70/ThemeMarket/0f6a435f804df4a8b247404051eeef34297574346
         */

        private String localPath;
        private String onlinePath;

        public String getLocalPath() {
            return localPath;
        }

        public void setLocalPath(String localPath) {
            this.localPath = localPath;
        }

        public String getOnlinePath() {
            return onlinePath;
        }

        public void setOnlinePath(String onlinePath) {
            this.onlinePath = onlinePath;
        }
    }
}